<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title> 
    @yield('css')
    <link rel="stylesheet" href="{{ asset('admins/css/pintuer.css')}}">
    <link rel="stylesheet" href="{{ asset('admins/css/admin.css')}}">
    <link href="{{asset('css/error.min.css')}}" rel="stylesheet" type="text/css" />
    <script src="{{asset('admins/js/jquery.js')}}"></script>   
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
  <div class="logo margin-big-left fadein-top">
    <h1><img src="{{asset('admins/images/y.jpg')}}" class="radius-circle rotate-hover" height="50" alt="" />后台管理中心</h1>
  </div>
  <div class="head-l">
    <a class="button button-little bg-green" href="/" target="_blank"><span class="icon-home"></span> 前台首页</a> &nbsp;&nbsp; 
    <a class="button button-little bg-red" href="{{ url('admin/logout')}}"><span class="icon-power-off"></span> 退出登录</a> 
    </div>
</div>
<div>
	 <div class="leftnav">
       <div class="leftnav-title"><strong><span class="icon-list"></span><a href = "/admin">后台首页</a></strong></div>
    <div class="leftnav-title"><strong><span class="icon-list"></span>菜单列表</strong></div>
    <h2><span class="icon-user"></span>用户管理</h2>
    <ul style="display: none">
    <li><a href="{{url('admin/userlist')}}" ><span class="icon-caret-right"></span>用户列表</a></li>
    <li><a href="{{url('admin/userlist/create')}}"><span class="icon-caret-right"></span>添加用户</a></li>
    </ul>   
    <h2><span class="icon-user"></span>分类管理</h2>
    <ul style="display: none">
    <li><a href="{{ url('admin/category/create')}}" ><span class="icon-caret-right"></span>增加分类</a></li>
    <li><a href="{{ url('admin/category')}}"><span class="icon-caret-right"></span>分类列表</a></li>
    </ul>
    <h2><span class="icon-user"></span>商品管理</h2>
    <ul style="display: none">
    <li><a href="{{ url('admin/goods/create')}}" ><span class="icon-caret-right"></span>增加商品</a></li>
    <li><a href="{{ url('admin/goods')}}" ><span class="icon-caret-right"></span>商品列表</a></li>
    </ul>
        <h2><span class="icon-user"></span>库存管理</h2>
    <ul style="display: none">
    <li><a href="{{url('admin/sku')}}" ><span class="icon-caret-right"></span>库存列表</a></li>
    </ul>
    <h2><span class="icon-user"></span>帮助栏目管理</h2>
    <ul style="display: none">
    <li><a href="{{url('admin/help_article')}}" ><span class="icon-caret-right"></span>帮助栏目内容管理</a></li>
    <li><a href="{{url('admin/help_article/create')}}" ><span class="icon-caret-right"></span>添加帮助栏目文章</a></li>
    </ul>
    <h2><span class="icon-user"></span>评价管理</h2>
    <ul style="display: none">
    <li><a href="{{url('admin/comment')}}" ><span class="icon-caret-right"></span>评价列表</a></li>
    </ul>
    <h2><span class="icon-user"></span>订单管理</h2>
    <ul style="display: none">
    <li><a href="{{ url('admin/orders')}}" ><span class="icon-caret-right"></span>订单列表</a></li>
    </ul>
    <h2><span class="icon-user"></span>链接管理</h2>
    <ul style="display: none">
    <li><a href="{{url('admin/linklist')}}" ><span class="icon-caret-right"></span>友情链接</a></li>
    <li><a href="{{url('admin/linklist/create')}}" target="right"><span class="icon-caret-right"></span>添加友情链接</a></li>
    </ul>
    <h2><span class="icon-user"></span>网站配置</h2>
    <ul style="display: none">
    <li><a href="{{url('admin/info')}}" ><span class="icon-caret-right"></span>轮播图</a></li>
    <li><a href="{{url('admin/info/create')}}" ><span class="icon-caret-right"></span>添加轮播图</a></li>
    </ul>
</div>
<script type="text/javascript">
$(function(){
  $(".leftnav h2").click(function(){
	  $(this).next().slideToggle(200);	
	  $(this).toggleClass("on"); 
  })
  $(".leftnav ul li a").click(function(){
	    $("#a_leader_txt").text($(this).text());
  		$(".leftnav ul li a").removeClass("on");
		$(this).addClass("on");
  })
});
</script>
<div class="admin">
    @yield('content')
</div>
<div style="text-align:center;">
    @yield('js')
</div>
</body>
</html>